import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useMiddleVarStore = defineStore(
  "middleVar",
  () => {
    const loginOpen = ref(false);
    const getLoginOpen = () => {
      return loginOpen.value
    }
    const setLoginOpen = (data) => {
      loginOpen.value = data;
    };
    return { loginOpen, getLoginOpen, setLoginOpen };
  },
  {
    persist: true, // 开启持久化
  }
);
